package projet.example.labyrinthe;

import projet.example.labyrinthe.listner.ListnerAPropos;
import projet.example.labyrinthe.listner.ListnerNiveau1;
import projet.example.labyrinthe.listner.ListnerNiveau2;
import projet.example.labyrinthe.listner.ListnerNiveau3;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.Button;

public class MainActivity extends Activity{

	//Labyrinthe labyrinthe;
	
	Button boutonNiveau1;
	Button boutonNiveau2;
	Button boutonNiveau3;
	Button boutonAPropos;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		boutonNiveau1 = (Button) findViewById(R.id.id_niveau1);
		boutonNiveau2 = (Button) findViewById(R.id.id_niveau2);
		boutonNiveau3 = (Button) findViewById(R.id.id_niveau3);
		boutonAPropos = (Button) findViewById(R.id.id_a_propos);
		
		boutonNiveau1.setOnClickListener(new ListnerNiveau1(this));
		boutonNiveau2.setOnClickListener(new ListnerNiveau2(this));
		boutonNiveau3.setOnClickListener(new ListnerNiveau3(this));
		boutonAPropos.setOnClickListener(new ListnerAPropos(this));
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	@Override
	protected void onPause() {
		super.onPause();
		//labyrinthe.pause();
	}

	@Override
	protected void onResume() {
		super.onResume();
		//labyrinthe.resume();
	}

}
